package com.cetccst.securitysuite.activity;

import android.os.Bundle;
import android.view.MenuItem;

import androidx.databinding.ViewDataBinding;

import cn.com.cetccst.uicomponents.binding.app.DataBindingActivity;

public abstract class BaseActivity<V extends ViewDataBinding> extends DataBindingActivity<V> {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //TODO 可以在基类中做一些适配工作
    }
    @Override

    public boolean onOptionsItemSelected(MenuItem item) {
        int id = item.getItemId();
        if (id == android.R.id.home) {
            finish();
        }
        return true;
    }

}
